home *** CD-ROM | disk | FTP | other *** search
/ Clickx 75 / Clickx 75.iso / software / expressionweb / expressionwebv3 / ExpressionWeb_en.exe / Setup / WeNoLoc.cab / xweb.FPCLASS.FPUTIL.CS < prev    next >
Encoding:
Text File  |  2009-06-09  |  534 b   |  19 lines

  1. void Item_Bound(Object sender, DataGridItemEventArgs e) { //v1.0
  2.     if(sender is DataGrid)
  3.     {
  4.         TableCellCollection cells;
  5.         DataGridColumnCollection columns;
  6.         int i;
  7.         cells = e.Item.Cells;
  8.         columns = ((DataGrid)sender).Columns;
  9.         for( i = 0 ; i < cells.Count ; i++)
  10.         {
  11.              if(columns[i] is BoundColumn && !cells[i].Text.Equals(" "))
  12.              {
  13.                  cells[i].Text = Server.HtmlEncode( cells[i].Text );
  14.              }
  15.         }
  16.     }
  17. }
  18.  
  19.